﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AP.Framework.Infrastructure.Repositories.IRepositories;
using ApCMS.Models;

namespace ApCMS.Controllers
{
    public class JobController : Controller
    {
        IJob _job;
        public JobController(IJob job)
        {
            _job = job;
        }
        public ActionResult Index()
        {
            JobModels model = new JobModels();
            model.JobList = _job.GetAll().OrderBy(p => p.Sequence).ToList();
            return View(model);
        }

    }
}
